GtkMenuButton: Use view-context-menu-symbolic when direction is NONE
authorMatthias Clasen <mclasen@redhat.com>
Tue, 8 Jul 2014 12:35:33 +0000 (08:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 8 Jul 2014 13:30:16 +0000 (09:30 -0400)
This makes it easier to construct gear menus: just set the direction
to 'none', no need to manually construct an image.

gtk/gtkmenubutton.c

index 7c1e463d3dbe4b7a1cf217e0d21f9fdda13991c2..6522649e8a3aced16f9635dc95cdc3cc8929f8f6 100644 (file)
@@ -597,6 +597,8 @@ set_arrow_type (GtkImage     *image,
   switch (arrow_type)
     {
     case GTK_ARROW_NONE:
+      gtk_image_set_from_icon_name (image, "view-context-menu-symbolic", GTK_ICON_SIZE_BUTTON);
+      break;
     case GTK_ARROW_DOWN:
       gtk_image_set_from_icon_name (image, "pan-down-symbolic", GTK_ICON_SIZE_BUTTON);
       break;